<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">



<h:head>
	<title>CREATION NEW PACKAGES</title>
</h:head>
<h:body>


	 
<h:form style="font-size:x-small;">



   <p:dataTable id="dataTable" var="package" value="#{searchBean.packageList}" widgetVar="packageListTable"   
           emptyMessage="No packages found with given criteria" filteredValue="#{searchBean.filteredPackage}"
            rowKey="#{package.idPackage}"
       
           selection = "#{searchBean.selectedPackage}"
           selectionMode="single"
            >
           
      
        <p:column id="IDPACKAGEColumn" filterBy="idPackage"   
                headerText="IDPACKAGE"
                
                filterMatchMode="contains">  
            <h:outputText value="#{package.idPackage}"/>
       
       
        </p:column>  
        <p:column id="EMPLOYEECREATORColumn" filterBy="employeeCreator"  
                headerText="EMPLOYEECREATOR">  
            <h:outputText value="#{package.employeeCreator}" />  
        </p:column>  
  
 
        <p:column id="IDBASICPRODUCT1Column" filterBy="idBasicProduct1"  
                headerText="DBASICPRODUCT1"  filterMatchMode="endsWith">  
            <h:outputText value="#{package.idBasicProduct1}" />  
            
            <h:form style="font-size:x-small;">
            <p:growl id="messages"/>
            <p:commandButton id="dynaButton" value="Details" type="button"/>
             </h:form>
        </p:column>  
        
        
        
         <p:column id="IDBASICPRODUCT2Column" filterBy="idBasicProduct2"  
                headerText="DBASICPRODUCT2"  filterMatchMode="endsWith">  
            <h:outputText value="#{package.idBasicProduct2}" />  
            <h:form style="font-size:x-small;">
            <p:growl id="messages"/>
            <p:commandButton id="dynaButton" value="Details" type="button"/>
             </h:form>
            
        </p:column>  
         
        
         <p:column id="IDBASICPRODUCT3Column" filterBy="idBasicProduct3"  
                headerText="DBASICPRODUCT3"  filterMatchMode="endsWith">  
            <h:outputText value="#{package.idBasicProduct3}" /> 
            <h:form style="font-size:x-small;">
            <p:growl id="messages"/>
            <p:commandButton id="dynaButton" value="Details" type="button"/>
             </h:form>
            
             
        </p:column>  
        
        
          <p:column id="TOTALPRICEColumn" filterBy="totalPrice"  
                headerText="TOTALPRICE" filterMatchMode="endsWith">  
            <h:outputText value="#{package.totalPrice}" />  
        </p:column>     
        
    </p:dataTable>  
      
      
      <p:commandButton id="dynaButton" value="Actions" type="button"/>
  <p:tieredMenu overlay="true" trigger="dynaButton" my="left top" at="left bottom">
  <p:menuitem value="Create" action="#{creationPredefinedPackageBean.createPackage() }"  onclick="PF('dlg').show()" />   
 <p:menuitem value="Modify" action="#{searchBean.personalizePackage()}" />
 
  </p:tieredMenu>
  
  
  <p:dialog header="Selected Values" modal="false" showEffect="fade" hideEffect="fade" widgetVar="dlg" closable="false" >  
        <h:panelGrid columns="2" id="display1" update="dataTable">  
           <h:link value="click to move to the Creation page"  onclick="PF('dlg').hide()" outcome="createFlight"/>
        </h:panelGrid>  
    </p:dialog>  
       
       
     
      
</h:form>

<h:form> 


</h:form>


  

	
</h:body>
</html>